package dao.connection;

import java.sql.Connection;

public abstract class DBConnection {
	
	public abstract Connection connectDB();
	
	public static DBConnection getInstance(String s) {
		if(s.equalsIgnoreCase("oracle"))
			return new OracleDBConnection();
		else if(s.equalsIgnoreCase("mysql")) {
			return new MysqlDBConnection();
		}
		return null;
	}

}
